package ZuoYe18;

public class HomeWork6 {

	public static void main(String[] args) {
		int[] array = { 9, 7, 3, 1, 2, 5, 6 };
		for (int i = 0; i < array.length / 2; i++) {
			int t = array[i];
			array[i] = array[array.length - i - 1];
			array[array.length - i - 1] = t;
		}
		for (int i : array) {
			System.out.print(" "+i);
		}
	}

}
